package com.chiry.business;

import java.io.IOException;

/**
 * @author fyx
 * @version 1.0
 * @date 2021/8/13 19:00
 */
public class Command1 {
    public static void main(String[] args) throws IOException {
        Thread daemon_thread = new Thread(new Runnable() {
            @Override
            public void run() {
                String cmd = "cmd /k conda activate my_paddlex && hub serving start --modules insectDetection==1.0 --port 8866";
                String result = null;
                try {
                    result = CMDUtil.excuteCMDCommand(cmd);
                } catch (IOException e) {
                    e.printStackTrace();
                }
                System.out.println(result);
            }
        }, "daemon thread");
        daemon_thread.start();
        System.out.println("end");

    }

}
